<div class="vheader">  
    <h1><?php echo $this->Businesses->d->Name ?></h1>
    <p><?php echo $this->translate("Business") ?>
</div>

<div class="vcontent">

    <img class="shadow" src="/default/photo/full/cat/i/id/<?php echo $this->Businesses->d->ClientId ?>" />

    <div class="cell">
    <dl>
        <dt><?php echo $this->translate("Name") ?></dt>
        <dd><?php echo $this->Businesses->d->Name ?></dd>
        <dt><?php echo $this->translate("Code") ?></dt>
        <dd><?php echo $this->Businesses->d->BusinessId ?></dd>
        <dt><?php echo $this->translate("Gov. code") ?></dt>
        <dd><?php echo $this->replaceEmpty($this->Businesses->d->GovCode,'-') ?></dd>
        <dt><?php echo $this->translate("Status") ?></dt>
        <dd><?php echo $this->Businesses->d->Status ?></dd>
        <dt><?php echo $this->translate("Client") ?></dt>
        <dd><?php echo $this->link('/admin/client/view',array('id'=>$this->Businesses->d->ClientId),$this->Businesses->d->ClientFullName) ?></dd>
        <dt><?php echo $this->translate("Loan officer") ?></dt>
        <dd><?php echo $this->link('/admin/officer/view',array('id'=>$this->Businesses->d->OfficerUserId),$this->Businesses->d->OfficerFullName) ?></dd>
        <dt><?php echo $this->translate("Branch") ?></dt>
        <dd><?php echo $this->link('/admin/location/view',array('id'=>$this->Businesses->d->LocationId),$this->Businesses->d->Location) ?></dd>
    </dl>
    </div>

    <div class="cell">
        <dl>
        <dt><?php echo $this->translate("Activity") ?></dt>
        <dd><?php echo $this->Businesses->d->Activity ?></dd>
        <dt><?php echo $this->translate("Type") ?></dt>
        <dd><?php echo $this->Businesses->d->Type ?></dd>
        <dt><?php echo $this->translate("Description") ?></dt>
        <dd><?php echo $this->replaceEmpty($this->Businesses->d->Description,'-') ?></dd>
        </dl>    
    </div>

</div>   

<div class="vfooter">
    <div class="menu">
        <?php echo $this->link('/admin/business/add', array('id'=>$this->Businesses->d->BusinessId),$this->translate("Edit business")) ?>  
        <?php echo $this->link('/admin/business/log', array('BusinessId'=>$this->Businesses->d->BusinessId),$this->translate("Business log"),array('target'=>'bottom')) ?>                
    </div>
</div>